package com.atguigu.spzx.cart;

import com.atguigu.spzx.service.annotation.EnableUserLoginAuthInterceptor;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * ClassName: CartApplication
 * Package: com.atguigu.spzx.cart
 * Description:
 *
 * @Author 刘强
 * @Create 2024/7/17 9:38
 * @Version 1.0
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)  //排除数据源的自动配置类
@EnableUserLoginAuthInterceptor   //开启认证上下文拦截器 -> 将用户信息保存到线程本地变量中了
@EnableFeignClients(basePackages = "com.atguigu.spzx.feign.product")
public class CartApplication {
    public static void main(String[] args) {
        System.out.println("dev分支修改购物车微服务启动...");
        System.out.println("我是master分支修改的代码");
           System.out.println("我是码云上修改的代码");
        SpringApplication.run(CartApplication.class,args);
    }
}
